|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--cnrg.itx.datax.devices.StreamDestination
Class to define a stream of data. Any valid output stream can be
represented by this class as a valid Destination object.
| Constructor Summary | |
StreamDestination(java.io.OutputStream outStream)
Constructor to create a stream destination. |
|
| Method Summary | |
void |
close()
Method to close the stream |
PropertiesCollection |
getProperties()
Returns a collection of properties supported. |
Stats |
getStatistics()
Method to get the statistics of the output stream. |
boolean |
mute(boolean mute)
Method to mute the stream. |
void |
setPeerProperties(PropertiesCollection pc)
Interface to set the given properties collection into the device. |
void |
setProperties(PropertiesCollection pc)
Sets the given properties collection into the device |
void |
write(byte[] b)
Method to write data to the stream. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public StreamDestination(java.io.OutputStream outStream)
throws DataException
OutputStream - The output stream for this destination| Method Detail |
public void write(byte[] b)
throws DataException
b - The array of bytes to write to the streampublic void close()
public boolean mute(boolean mute)
mute - The mode of the mutepublic Stats getStatistics()
public PropertiesCollection getProperties()
throws DataException
public void setProperties(PropertiesCollection pc)
throws DataException
public void setPeerProperties(PropertiesCollection pc)
throws DataException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||